package org.ymjava.medical.db.AllPackage.biz;

import com.ace.cache.annotation.Cache;
import org.springframework.stereotype.Service;

import org.ymjava.medical.db.AbstractBaseBiz.BaseBiz;
import org.ymjava.medical.db.AllPackage.entity.BannerList;
import org.ymjava.medical.db.AllPackage.mapper.BannerListMapper;
import tk.mybatis.mapper.entity.Example;

import java.util.List;
import java.util.Map;


/**
 * 
 *
 * @author zhy
 * @email ${email}
 * @date 2020-03-23 13:18:55
 */
@Service
public class BannerListBiz extends BaseBiz<BannerListMapper,BannerList> {

    /**
     * 查询首页轮播图列表
     * @return
     */
    @Cache(key = "nurse_answer_home_list_banner")
    public List<BannerList> get_list_sort() {

        Example example = new Example(BannerList.class);
        example.createCriteria().andEqualTo("deleted",0);
        example.orderBy("sort");
        List<BannerList> list_banner = selectByExample(example);

        return  list_banner;
    }


}